import React, { PureComponent } from 'react'
import { connect } from 'react-redux'
import CinemaItem from './CinemaItem/CinemaItem'
import recordAction from "../../../../redux/action/recordAction";
class CinemaList extends PureComponent {
  recordDes=(el)=>{
    this.props.recordAction('record',el)
  }
  render() {
    let {movielist} = this.props
    return (
      <>
        <CinemaItem movielist={movielist} recordDes={this.recordDes}/>
        <div style={{'height':'50px'}}></div>
      </>
    )
  }
}
export default connect(
  state=>({}),
  {
    recordAction
  }
)(CinemaList)